<template>
   <div class="block">
    <span class="demonstration">默认</span>
    <el-date-picker
      v-model="value1"
      type="daterange"
      range-separator="至"
      start-placeholder="开始日期"
      end-placeholder="结束日期">
    </el-date-picker>
   <el-button type="primary" @click="SubmitDate">查询</el-button>

  </div>
</template>

<script>
  export default {
      name:'date',
    data() {
      return {
        value1: '',
        value2: ''
      };
    },
    methods: {
    SubmitDate() {
        console.log("这是value1"+this.value1)
        //console.log("这是value2"+this.end-placeholder)


      
    }
    }
  };
</script>